package com.exam.service.serviceImpl;

import com.exam.entity.SingleChoiceQuestions;
import com.exam.mapper.SingleChoiceQMapper;
import com.exam.service.SingleChoiceQService;

import java.util.List;
import java.util.Map;

public class SingleChoiceQServiceImpl implements SingleChoiceQService {
    private SingleChoiceQMapper singleChoiceQMapper;

    public void setSingleChoiceQMapper(SingleChoiceQMapper singleChoiceQMapper) {
        this.singleChoiceQMapper = singleChoiceQMapper;
    }

    @Override
    public int add_choice_question(SingleChoiceQuestions singleChoiceQuestions) {
        return singleChoiceQMapper.add_choice_question(singleChoiceQuestions);
    }

    @Override
    public List<SingleChoiceQuestions> get_single_choiceQ_by_s_id(int s_id) {
        return singleChoiceQMapper.get_single_choiceQ_by_s_id(s_id);
    }

    @Override
    public int update_single_choiceQ_by_c_id(SingleChoiceQuestions singleChoiceQuestions) {
        return singleChoiceQMapper.update_single_choiceQ_by_c_id(singleChoiceQuestions);
    }

    @Override
    public int del_single_choiceQ_by_c_id(int c_id) {
        return singleChoiceQMapper.del_single_choiceQ_by_c_id(c_id);
    }

    @Override
    public List<SingleChoiceQuestions> get_question_by_s_id_and_level(Map<String,Object> map) {
        return singleChoiceQMapper.get_question_by_s_id_and_level(map);
    }

    @Override
    public SingleChoiceQuestions get_scq_by_c_id(int scq_c_id) {
        return singleChoiceQMapper.get_scq_by_c_id(scq_c_id);
    }

    @Override
    public int num1() {
        return singleChoiceQMapper.num1();
    }

    @Override
    public List<SingleChoiceQuestions> get_cq_test_by_s_id(int s_id) {
        return singleChoiceQMapper.get_cq_test_by_s_id(s_id);
    }

}
